package util;

public class Number
{
	public static boolean isNumber(String number) 
	{
		try 
		{
			Integer.valueOf(number);

			return true;
		}
		catch(Exception e) 
		{
			return false;
		}
	}
	
	public static boolean isDouble(String number) 
	{
		try 
		{
			Double.valueOf(number);

			return true;
		}
		catch(Exception e) 
		{
			return false;
		}
	}
}
